Skip to content

Conversation

ivankoc
Copy link
Member

@ivankoc ivankoc commented Sep 25, 2026

Closes #4

What and why

Technical base for the project, kept minimal until the dataset and database are chosen.

  • frontend/: Vite + React + TS template with the demo removed. Vitest + Testing Library with one test. base: '/project2/' for Apache on the VM. System fonts, visible focus and reduced-motion base styles.
  • backend/: Apollo Server (standalone) on port 3001 with a placeholder hello query and an API test via executeOperation. Node runs the .ts files directly (type stripping, Node >= 22.18), so there is no build step.
  • Root: npm workspaces (one npm install), Prettier, oxlint, and a CI workflow running lint, format check, typecheck, tests and build on every PR.
  • CLAUDE.md: repo layout, commands, stack decisions, and a new rule that agents only commit locally and push when asked (also enforced as a permission prompt in .claude/settings.json).

Notes for review:

How to test

  1. npm install
  2. npm test, npm run lint, npm run format:check, npm run typecheck, npm run build
  3. npm run dev:backend, then curl -X POST localhost:3001 -H 'content-type: application/json' -d '{"query":"{ hello }"}'
  4. npm run dev:frontend and open the printed URL

AI usage

Scaffolding and config were generated with Claude Code, starting from the official Vite template. The author reviewed all files before committing and ran every check locally.

Checklist

  • Linked issue, labels and milestone set
  • Lint and tests pass locally
  • Tests added/updated for new logic
  • Accessible (keyboard, labels, contrast, screen reader) if UI changed
  • README/CLAUDE.md updated if setup, commands or decisions changed
  • No secrets or personal data committed

🤖 Generated with Claude Code

- frontend: Vite + React + TS, Vitest + Testing Library, base /project2/
- backend: Apollo Server on port 3001, run directly by Node (type stripping)
- npm workspaces, oxlint, Prettier, CI running all checks on PRs
- agents commit locally and push only when asked

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ivankoc ivankoc requested a review from a team as a code owner September 25, 2026 09:51
@ivankoc ivankoc added this to the Innlevering 1 milestone Sep 25, 2026
@ivankoc ivankoc added frontend React/Vite client backend GraphQL server chore Tooling, config, housekeeping labels Sep 25, 2026
@ivankoc ivankoc self-assigned this Sep 25, 2026
@jonhella jonhella merged commit a4e3bab into main Sep 25, 2026
1 check failed
@ivankoc ivankoc deleted the chore/4-init-setup branch September 28, 2026 09:17
Sign in to join this conversation on GitHub.
Labels
backend GraphQL server chore Tooling, config, housekeeping frontend React/Vite client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaffold frontend (Vite + React + TS) with lint, Prettier and Vitest
3 participants